
<div class="main-content">
                        <div class="btn-toolbar list-toolbar">
                            <div class="form-all mg_t100">
                                <div class="inp_biaodan">

                                    <form name="add_form" id="add_form" action="{{url('admin/yanpan/edit_rule',$id)}}" method="post" enctype="multipart/form-data">
                                     <input type="hidden" name="_token" value="{{ csrf_token() }}">
                                    <table class="table table-bordered table-form table-border inp_biaodan_table">
                                        <thead>
                                            <tr>
                                                <th colspan="6" class="tt">颜色规则</th>
                                            </tr>
                                        </thead>
                                         <tbody>
                                            <tr>
                                                <td>标题</td>
                                                <td><input type="text" class="easyui-validatebox" value="{{$re->name}}" name="name" data-options="required:true,missingMessage:'标题不能为空',validateOnCreate:false,validateOnBlur:true"/></td>
                                                <td>选择研判规则</td>
                                                <td>
                                                    <select class="form-control easyui-validatebox" name="rule_id" data-options="required:true,missingMessage:'研判规则不能为空',validateOnCreate:false,validateOnBlur:true">
                                                    <option value="">请选择</option>
                                                    @foreach($rule as $k=>$v)
                                                        <option value="{{$v->id}}" @if($re->rule_id == $v->id) selected @endif>{{$v->name}}</option>
                                                    @endforeach
                                                </select>
                                                </td>

                                             
                                            </tr>

                                            <tr>
                                                <td>备注</td>
                                                <td colspan="5"><textarea class="textarea textarea_min" name="remark">{{$re->remark}}</textarea></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <div class="w wbt mg_t25 text-center">
                                     <button id="go" type="button" class="easyui-linkbutton dsp" data-options="iconCls:'icon-save'">修改</button>
                                     <button type="button" class="easyui-linkbutton dsp" data-options="iconCls:'icon-no'" onclick="$('#adbg').window('close')">关闭</button>
                                    </div>
                                      </form>
                                </div>
                            </div>
                        </div>
                    </div>


        <script>
            $('#go').click(function (){
            	if(!$("#add_form").form('validate')){
					return false;
					}
                $.ajax({
                    cache: true,
                    type: "POST",
                    url: "{{url('admin/yanpan/edit_color',$id)}}",
                    data:$('#add_form').serialize(),
                    async: false,
                    success: function(data) {
                        if(data.status == 1){
                            $.messager.alert('信息提示',data.msg,'info');
                            $('#adbg').dialog('close');
                            $('.pagination-load').click();
                        }else {
                            $.messager.alert('信息提示',data.msg,'info');
                        }
                    }
                });
            });
        </script>

                              
        

    



<style type=text/css>
.inp_biaodan {
    padding: 10px;
}
.inp_biaodan_tt {
    margin-bottom: 20px;
    margin-left: 15px;
}
.inp_biaodan_table thead tr th{
    border-bottom: 1px solid #95b8e7;
}
.inp_biaodan .noFloat label {
    display: block;
}
.inp_biaodan input ,.inp_biaodan_table select {
    padding-left: 5px;
    height: 28px;
    margin-right: 10px;
    border-color: #95b8e7;
    border-width: 1px;
    border-style: solid;
    width: 100%;
}
.inp_biaodan textarea {
    height: 70px;
    width: 100%;
    border: 1px solid #95b8e7;
}
.inp_biaodan_table td{
    border: 1px solid #95b8e7;
    background: #ffffff;
    padding: 4px !important;
    color: #000060;

}
.inp_biaodan_table thead tr th.tt 

 {
    font-size: 15px;
    text-align: left !important;
    padding-left: 15px !important;
    background: none;
    color: #000060;
}

.inp_biaodan_table thead
{
    background-color: #f8fbff;
    background: -webkit-linear-gradient(top,#fdfdfd 0,#fbfbff 100%); 
    background: -moz-linear-gradient(top,#fdfdfd 0,#fbfbff 100%);
    background: -o-linear-gradient(top,#fdfdfd 0,#fbfbff 100%);
    background: linear-gradient(to bottom,#fdfdfd 0,#fbfbff 100%); 
    background-repeat: repeat-x;
}   

.tongjitu_tb thead th{
    text-align: center;
    font-size: 25px;
    height: 50px;
}
.tongjitu_tb  .thead{
    text-align: center; 
    border: 1px solid #95B8E7;
    font-weight: bold;
    height: 85px;
}
.tongjitu_tb  .thead {
    height: 45px;
}
.tongjitu_tb tbody td{
    text-align: center; 
    border: 1px solid #95B8E7;
    padding: 4px !important;
    color: #000060;
}
.tongjitu_tb input {
    width: 100%;
    height: 40px;
    border: none;
    text-align: center;
    background: none;
}
</script>

